package com.geese.common.entity;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;

public class Account extends BaseEntity {
	private static final long serialVersionUID = 4102321313238906810L;

	private Integer id;

    private Integer userId;

    private String account;

    private String password;

    private Date lastPasswordReset;
    
    private Date lastLogin;
    
	private String lastIp;

    private Integer allowPoint;

    private Integer block;

    private Integer enable;

    public Date getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}

	public String getLastIp() {
		return lastIp;
	}

	public void setLastIp(String lastIp) {
		this.lastIp = lastIp;
	}
	
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Date getLastPasswordReset() {
        return lastPasswordReset;
    }

    public void setLastPasswordReset(Date lastPasswordReset) {
        this.lastPasswordReset = lastPasswordReset;
    }

    public Integer getAllowPoint() {
        return allowPoint;
    }

    public void setAllowPoint(Integer allowPoint) {
        this.allowPoint = allowPoint;
    }

    public Integer getBlock() {
        return block;
    }

    public void setBlock(Integer block) {
        this.block = block;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }
    
    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}